Skip to content

fix: rclone zombie where cron - #443

Open
exfly wants to merge 1 commit into
cupcakearmy:masterfrom
exfly:be-fix-rclone-zombie
Open

fix: rclone zombie where cron#443
exfly wants to merge 1 commit into
cupcakearmy:masterfrom
exfly:be-fix-rclone-zombie

Conversation

@exfly

@exfly exfly commented Apr 27, 2025

Copy link
Copy Markdown

@vercel

vercel Bot commented Apr 27, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autorestic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2025 1:59am

Comment thread Dockerfile
RUN apk add --no-cache rclone bash curl docker-cli tini
COPY --from=builder /app/autorestic /usr/bin/autorestic
ENTRYPOINT []
ENTRYPOINT [ "/sbin/tini", "--" ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an old changelog entry about handing signals and graceful shutdown - if I understand tini correctly, it'll kill the process on SIGTERM instead of letting it handle its own shutdown

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

”All Tini does is spawn a single child (Tini is meant to be run in a container), and wait for it to exit all the while reaping zombies and performing signal forwarding.“

ref https://github.com/krallin/tini

tinit avoids zombies.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an old changelog entry about handing signals and graceful shutdown - if I understand tini correctly, it'll kill the process on SIGTERM instead of letting it handle its own shutdown

https://github.com/restic/restic/blob/master/internal/backend/rclone/backend.go#L85

cmd.Start no wait caused zombies. this pr is a workaroumd. It works in my homelab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants